package com.hxd.otc.common;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by Eric on 2017/1/16.
 */

public class HostType {
    public static final int TYPE_COUNT = 9;//多少种Host类型

    public static final int HOST_TEST = 111;//内部测试环境
    public static final int HOST_FORMAL = 222;//正式环境
    public static final int HOST_FORMAL_TEST = 333;//客户测试环境
    public static final int HOST_STAND_01 = 444;//开发环境

    public static final int HOST_REMOTE_FORMAL = 555;//远程支付（正式环境）
    public static final int HOST_REMOTE_TEST = 666;//远程支付（内部测试环境）
    public static final int HOST_REMOTE_DEVELOP = 777;//远程支付（开发环境）
    public static final int HOST_REMOTE_FORMAL_TEST = 999;//远程支付（客户测试环境）

    public static final int HOST_UPLOAD_IMAGE = 888;//图片上传

    /**
     * 替代枚举的方案，使用IntDef保证类型安全
     */
    @IntDef({HOST_TEST, HOST_STAND_01, HOST_FORMAL_TEST, HOST_FORMAL,
            HOST_REMOTE_FORMAL, HOST_REMOTE_TEST, HOST_REMOTE_FORMAL_TEST, HOST_REMOTE_DEVELOP,
            HOST_UPLOAD_IMAGE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface HostTypeChecker {
    }
}
